import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

//actions，动作
const actions = {
    getUser(context, value){
        
    }
}

//mutations，动作调用数据
const mutations = {}

//state，数据
const state = {
    ages:12,
    user:{
        uname: 'ccc'
    }
}

export default new Vuex.Store({
    actions,
    mutations,
    state,
})